"use strict";
var thisDirection;
(function (thisDirection) {
    //! 箭头函数
    class MyClass {
        constructor() {
            this.name = "MyClases";
            // getName = () => {
            //     return this.name;
            // };
            this.getName = function () {
                console.log(this);
                return this.name;
            };
        }
    }
    const cs = new MyClass();
    const obje = {
        name: "obj",
        getName: cs.getName,
    };
    // Prints "obj", not "MyClass"
    console.log(obje.getName());
})(thisDirection || (thisDirection = {}));
